<?php /* Smarty version Smarty-3.0.7, created on 2011-09-28 00:57:29
         compiled from "string:" */ ?>
<?php /*%%SmartyHeaderCode:9302385134e8200799f0622-89608301%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '444e3e7b511d8810998b174384dc21dba1c48216' => 
    array (
      0 => 'string:',
      1 => 0,
      2 => 'string',
    ),
    'a6027d83b5622ca8af1c7c3848816f7cbddcef38' => 
    array (
      0 => '/Users/zhangjinxuan/www2/application/views/base.tpl',
      1 => 1317136900,
      2 => 'file',
    ),
    'd17f568b04bf7640770c888914ea8c27905d38e6' => 
    array (
      0 => '/Users/zhangjinxuan/www2/application/views/inc/ga.inc',
      1 => 1317135335,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '9302385134e8200799f0622-89608301',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php if (!is_callable('smarty_function_cycle')) include '/Users/zhangjinxuan/www2/modules/jkit/vendor/smarty3/plugins/function.cycle.php';
?><?php  $_config = new Smarty_Internal_Config("site.conf", $_smarty_tpl->smarty, $_smarty_tpl);$_config->loadConfigVars(null, 'local'); ?>
<!DOCTYPE html>
<html lang="zh-CN" class="<?php echo $_smarty_tpl->getVariable('ua')->value;?>
">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>搜酷</title>
    <script type="text/javascript">var _head_start = new Date();</script>
    <link href="<?php echo $_smarty_tpl->getConfigVariable('res_url');?>
/style/apps/bc.css" rel="stylesheet" type="text/css">
    <script src="<?php echo $_smarty_tpl->getConfigVariable('res_url');?>
/script/apps/core_dom_youa.js"></script>
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
</head>
<body>
    <div id="doc">
        <div id="header">
            <?php $_template = new Smarty_Internal_Template("inc/header.inc", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php unset($_template);?>
        </div>
        <div id="content">
            <div class="grid-16-8 clearfix">
                <div class="article">
                    
	<table class="table1">
	    <thead>
		    <tr>
    			<th>表头1</th>
    			<th>表头1</th>
    			<th>表头1</th>
    			<th>表头1</th>
    			<th>表头1</th>
    		</tr>
		</thead>
		<tfoot>
		    <tr>
		        <td colspan="5"><div class="page"><a href="#1">1</a> <a href="#2">2</a></div></td>
		    </tr>
		</tfoot>
		<tbody id="tbody1">
		<?php  $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('table1')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value){
?>
			<tr class="<?php echo smarty_function_cycle(array('values'=>',alt'),$_smarty_tpl);?>
">
			<?php  $_smarty_tpl->tpl_vars['i'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['item']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['i']->key => $_smarty_tpl->tpl_vars['i']->value){
?>
				<td><?php echo $_smarty_tpl->tpl_vars['i']->value;?>
</td>
			<?php }} ?>
			</tr>
		<?php }} ?>
		</tbody>
	</table>

                </div>
                <div class="aside">
                    
<ul class="side-nav">
	<li>
		<h2>功能一</h2>
		<ul>
			<li>二级功能</li>
			<li>二级功能</li>
			<li>二级功能</li>
			<li>二级功能</li>
			<li>二级功能</li>
			<li>二级功能</li>
		</ul>
	</li>
	<li>
		<h2>功能一</h2>
		<ul>
			<li>二级功能</li>
			<li>二级功能</li>
			<li>二级功能</li>
			<li>二级功能</li>
			<li>二级功能</li>
			<li>二级功能</li>
		</ul>
	</li>
	<li>
		<h2>功能一</h2>
		<ul>
			<li>二级功能</li>
			<li>二级功能</li>
			<li>二级功能</li>
			<li>二级功能</li>
			<li>二级功能</li>
			<li>二级功能</li>
		</ul>
	</li>
	<li>
		<h2>功能一</h2>
		<ul>
			<li>二级功能</li>
			<li>二级功能</li>
			<li>二级功能</li>
			<li>二级功能</li>
			<li>二级功能</li>
			<li>二级功能</li>
		</ul>
	</li>
</ul>

                </div>
                <div class="extra">
                    
                        extra
                    
                </div>
            </div>
        </div>
        <div id="footer" class="clearfix">
            <?php $_template = new Smarty_Internal_Template("inc/footer.inc", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php unset($_template);?>
        </div>
    </div>

<div class="panel">ft_dom</div>


<script>
var ft_js = null;
Dom.ready(function(){
    alert('dom ready');
    W('.side-nav h2').on('click',function(e){
        console.log(W(this));
        alert(this);
    });
    W('.page>a').on('click',function(e){
       e.preventDefault(); 
       var pn = W(this).attr('href').replace('#');
       var arr = [
           {a:'fewa',b:'ewaf',c:'c',d:'d',e:'e'},
           {a:'fewa',b:'ewaf',c:'c',d:'d',e:'e'},
           {a:'fewa',b:'ewaf',c:'c',d:'d',e:'e'},
           {a:'fewa',b:'ewaf',c:'c',d:'d',e:'e'},
           {a:'fewa',b:'ewaf',c:'c',d:'d',e:'e'}
       ];
       var len = arr.length;
       var html = [];
       var tpl_tb = "<tr class='{$alt}'><td>{$a}</td><td>{$b}</td><td>{$c}</td><td>{$d}</td><td>{$e}</td></tr>";
       for(var i=0;i<len;i++){
           if(i%2 !== 0){
               arr[i].alt = 'alt';
           }else{
               arr[i].alt = '';
           }
           html.push(tpl_tb.tmpl(arr[i]));
       }
       //console.log(html.join(''));
       W('#tbody1').html(html.join(''));
    });
});
</script>


    <?php $_template = new Smarty_Internal_Template("inc/ga.inc", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
$_template->properties['nocache_hash']  = '9302385134e8200799f0622-89608301';
$_tpl_stack[] = $_smarty_tpl; $_smarty_tpl = $_template;?>
<?php /* Smarty version Smarty-3.0.7, created on 2011-09-28 00:57:29
         compiled from "/Users/zhangjinxuan/www2/application/views/inc/ga.inc" */ ?>
  <script type="text/javascript">
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
  </script>
  <script type="text/javascript">
    try{
      var pageTracker = _gat._getTracker("UA-17469061-1");
      pageTracker._trackPageview();
    } catch(err) {}
  </script><?php $_smarty_tpl->updateParentVariables(0);?>
<?php /*  End of included template "/Users/zhangjinxuan/www2/application/views/inc/ga.inc" */ ?>
<?php $_smarty_tpl = array_pop($_tpl_stack);?><?php unset($_template);?>

</body>
</html>
